﻿/*using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SgMotion.Controllers;
using Microsoft.Xna.Framework;

namespace The_LarX
{
    public class WaveReader_LipControl : WaveReader
    {
        public int UpperBone;
        public int LowerBone;
        public sgMotionAnimatedActor AnimatedActor;

        //public EditorRepresentation Representation;

        public WaveReader_LipControl(sgMotionAnimatedActor cont, bool rep,
            string fileName, string SoundEffect, Renderer Renderer, GameScreen gs)
            : base(rep, fileName, SoundEffect, gs)
        {
            this.AnimatedActor = cont;
            //if (Engine.Editor)
                //Representation = new EditorRepresentation("", Renderer);
        }
        public WaveReader_LipControl()
        {
        }

        private float lastSamp;
        private float Samp;
        public override void Update()
        {
            base.Update();

            lastSamp = Samp;
            Samp = MathHelper.ToRadians(CurrentSample / 500);

            AnimatedActor.AnimationController.SkinnedBoneCustomPositions[UpperBone] = new Vector3(AnimationHelper.AnimateStatic(
               lastSamp, Samp, 5), 0, 0);
            AnimatedActor.AnimationController.SkinnedBoneCustomPositions[LowerBone] = new Vector3(-AnimationHelper.AnimateStatic(
               lastSamp, Samp, 5), 0, 0);
        }

        public override void SerializeData()
        {
            base.SerializeData();

            Data.AddData("WaveReader_LipControl.UpperBone", this.UpperBone);
            Data.AddData("WaveReader_LipControl.LowerBone", this.LowerBone);
            Data.AddData("WaveReader_LipControl.AnimatedActor", AnimatedActor.Name);
        }
        public override void DeserializeData()
        {
            base.DeserializeData();

            this.UpperBone = Data.GetData<int>("WaveReader_LipControl.UpperBone");
            this.LowerBone = Data.GetData<int>("WaveReader_LipControl.LowerBone");
            this.AnimatedActor = (sgMotionAnimatedActor)EngineSystem.Actor_ByName(Data.GetData<string>("WaveReader_LipControl.AnimatedActor"));
        }
    }
}*/
